<%@ page import="java.util.ArrayList" %><%--
  Created by IntelliJ IDEA.
  User: 86155
  Date: 2021/10/15
  Time: 17:45
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%request.setCharacterEncoding("utf-8");
    response.setCharacterEncoding("utf-8");
    response.setContentType("text/html;charset=UTF-8");%>
<%if("content".equals(request.getParameter("require")) && application.getAttribute("chatInfo") != null){
    out.clear();
    StringBuffer info = (StringBuffer) application.getAttribute("chatInfo");
    //System.out.println("聊天内容："+info);
    out.print(info.toString());
}
if("numOfPeop".equals(request.getParameter("require"))){
    out.clear();
    out.print(application.getAttribute("numOfPeop"));
}
if("peopList".equals(request.getParameter("require"))){
    ArrayList<String> peopList = (ArrayList<String>) application.getAttribute("peopList");
    out.clear();
    out.print(peopList.toString()+"-"+application.getAttribute("numOfPeop"));
}%>
